package org.app.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.app.Entity.ExercisePlan;

import java.util.List;

@Mapper
public interface IExercisePlanMapper extends BaseMapper<ExercisePlan> {
    List<ExercisePlan> listExercisePlanByCID(String c_id);
    List<ExercisePlan> listExercisePlanByCIDInTwoDays(String c_id);
    List<ExercisePlan> listExercisePlanByGID(String group_id);
    List<ExercisePlan> listGuideExercisePlanByCID(@Param("c_id") String c_id ,@Param("group_id") String group_id);
    List<ExercisePlan> listPersonalExercisePlan(@Param("group_id") String group_id,@Param("c_id") String c_id);
    List<ExercisePlan> listFivePlans(@Param("group_id") String group_id,@Param("c_id") String c_id);
    ExercisePlan selectById(String p_id);
    ExercisePlan getUnShown(String p_id);

    Integer createExercisePlan(ExercisePlan exercisePlan);
    Integer updateExercisePlan(ExercisePlan exercisePlan);
    Integer deleteExercisePlan(ExercisePlan plan);
    Integer finishPlan(ExercisePlan plan);
    Integer unshowPlan(ExercisePlan plan);
}
